package com.cloud.demo.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <h3>生产者服务接口</h3>
 * @author dragons
 * @date 2020/9/3 22:30
 */
@FeignClient("spring-cloud-producer")
public interface ProducerService {
    /**
     * 生产者接口
     */
    @RequestMapping(value = "/produce", method = {RequestMethod.POST})
    String produce(@RequestParam String content);
}
